﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SecondaryMain.Master" Inherits="System.Web.Mvc.ViewPage<TvGuide.UI.Models.SearchData>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	 <%= TVGuide.Common.Main.SEARCHTITLE_LBL%>
</asp:Content>


<asp:Content ID="AdvancedSearchPageMetaTags" ContentPlaceHolderID="MetaTagsHolder" runat="server">
    <meta name="Description" content="Here you can search for most popular TV shows and programs on <% = ViewData["name"] %> tv online" />
    <meta name="keywords" content="search armenian <% = ViewData["name"] %> tv online փնտրել հայկական ծրագիր օնլայն <%=ViewData["displayName"]%>" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="SecondaryContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#accordion").accordion({
                collapsible: true,
                autoHeight: false,
                navigation: true,
                offset: [5, 0]
            });


            $("#accordion img[title]").tooltip({
                effect: 'slide',
                position: 'center left'

            }).dynamic({ bottom: { direction: 'down', bounce: true} });

            $.datepicker.setDefaults($.datepicker.regional['']);


            $("#StartDateText").datepicker($.datepicker.regional['hy']);
            $("#StartDateText").datepicker("option", "dateFormat", "DD, d MM");
            $("#StartDateText").datepicker("option", "minDate", "-10");
            $("#StartDateText").datepicker("option", "maxDate", "+7");
            $("#StartDateText").datepicker("option", "showOn", "button");
            $("#StartDateText").datepicker("option", "buttonImage", "/Content/imgs/calendar.gif");
            $("#StartDateText").datepicker("option", "buttonImageOnly", "true");


            $("#EndDateText").datepicker($.datepicker.regional['hy']);
            $("#EndDateText").datepicker("option", "dateFormat", "DD, d MM");
            $("#EndDateText").datepicker("option", "minDate", "-10");
            $("#EndDateText").datepicker("option", "maxDate", "+7");
            $("#EndDateText").datepicker("option", "showOn", "button");
            $("#EndDateText").datepicker("option", "buttonImage", "/Content/imgs/calendar.gif");
            $("#EndDateText").datepicker("option", "buttonImageOnly", "true");

            $("#SearchText").val("Որոնել հաղորդում...");
            $('#SearchText').focus(function () {
                if ($("#SearchText").val() == "Որոնել հաղորդում...") {
                    $("#SearchText").val("");
                    $("#SearchText").css("color", "#000000");
                }

            });
            //            $('#SearchText').focusout(function () {
            //                if ($("#SearchText").val() == "") {
            //                    $("#SearchText").val("Որոնել հաղորդում...");
            //                }

            //            });
            $("#StartDateText").val("Որ օրվանից");
            $("#EndDateText").val("Մինչև երբ");
        });

    </script>
       
         <% Html.RenderPartial("SearchWidget"); %>

    <% if (Model.AccardionProgramList.Count != 0)
       {%>
            <div id="accordion-wrapper">
 
                <%=Html.Acordion(Model.AccardionProgramList)%>
   
            </div>
       <%} %>
    <%else
       {%>
          <%-- <p>Nothing is found</p>--%>
       <%} %>
</asp:Content>
